package fashionshop.gui.common.model;

import java.util.Collection;
import java.util.Map;

import fashionshop.domain.Store;
import fashionshop.gui.common.constant.ModelConstants;

public class StoreModelData extends DomainModelData<Store> {

	private static final long serialVersionUID = 1L;

	public StoreModelData(Store e) {
		super(e);
	}

	@Override
	protected void populateNames(Collection<String> names) {
		names.add(ModelConstants.STORE_NAME);
		names.add(ModelConstants.STORE_NAME);
		names.add(ModelConstants.STORE_PHONE);
	}

	@Override
	protected void populateProps(Map<String, Object> props) {
		props.put(ModelConstants.STORE_NAME, entity.getName());
		props.put(ModelConstants.STORE_ADDRESS, entity.getAddress());
		props.put(ModelConstants.STORE_PHONE, entity.getPhone());
	}

}
